<template>
  <div class="firstYe">
    <div class="title">
        <h1>首页</h1>
    </div>
    <div class="box">
        <div class="mk" style="background-color: #f0ad4e;" @click="$router.push('/users')">
            <p class="num">1316</p>
            <p class="pro">
                <i class="el-icon-s-custom"></i>
                <span>用户总数</span>
            </p>
        </div>
        <div class="mk" style="background-color: #5cb85c;" @click="$router.push('/good')">
            <p class="num">4416</p>
            <p class="pro">
                <i class="el-icon-s-custom"></i>
                <span>商品总数</span>
            </p>
        </div>
        <div class="mk" style="background-color: #4cb1cf;" @click="$router.push('/order')">
            <p class="num">1454</p>
            <p class="pro">
                <i class="el-icon-s-custom"></i>
                <span>订单总数</span>
            </p>
        </div>
    </div>
  </div>
</template>

<script>
export default {
    name:"firstYe"
}
</script>

<style scoped lang="scss">
.title{
    height: 80px;
    margin-left: 15px;
}
.box{
    width: 100%;
    display: flex;
    justify-content: start;
    .mk{
        flex: 1;
        width: 320px;
        height: 160px;
        margin:0 15px;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        color: #fff;
        cursor: pointer;
        transition: all .3s;
        .num{
            font-size: 50px;
            margin-bottom: 10px;
        }
        .pro{
            font-size: 18px;
        }
    }
    .mk:hover{
        color: #000;
        transform: scale(1.1);
    }
}
</style>